package io.renren.modules.com.service;

import java.io.OutputStream;
import java.util.List;
import java.util.Map;

import io.renren.common.utils.R;
import io.renren.modules.com.entity.ComContractEntity;

/**
 * 
 * 
 * @author pfp
 * @email
 * @date 2017-07-16 09:34:53
 */
public interface ComContractService {

	ComContractEntity queryObject(Long contractId);

	List<ComContractEntity> queryList(Map<String, Object> map);

	int queryTotal(Map<String, Object> map);

	R save(ComContractEntity comContract);

	R update(ComContractEntity comContract);

	void delete(Long contractId);

	void deleteBatch(Long[] contractIds);

	R updateSupple(ComContractEntity comContract);

	R endContract(ComContractEntity comContract);

	void contractExport(String string, List<ComContractEntity> contractList, OutputStream out);

}
